#include<iostream>
using namespace std;

class Solution {
public:
    int add(int a, int b) {
        int temp = a^b;
        temp += ((unsigned int)(a&b))<<1;
        return temp;
    }
};

int main(){
    Solution S;
    cout<<S.add(1,-2)<<endl;
}